<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GailMisc: GAIL Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GAIL Reference Manual">
<link rel="up" href="libgail-util-main.html" title="GAIL libgail-util Library">
<link rel="prev" href="gail-libgail-util3-GailTextUtil.html" title="GailTextUtil">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#gail-libgail-util3-GailMisc.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="libgail-util-main.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gail-libgail-util3-GailTextUtil.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><img src="right-insensitive.png" width="16" height="16" border="0"></td>
</tr></table>
<div class="refentry">
<a name="gail-libgail-util3-GailMisc"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gail-libgail-util3-GailMisc.top_of_page"></a>GailMisc</span></h2>
<p>GailMisc — GailMisc is a set of utility functions which may be
useful to implementors of Atk interfaces for custom widgets.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="gail-libgail-util3-GailMisc.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> *
</td>
<td class="function_name">
<a class="link" href="gail-libgail-util3-GailMisc.html#gail-misc-add-attribute" title="gail_misc_add_attribute ()">gail_misc_add_attribute</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> *
</td>
<td class="function_name">
<a class="link" href="gail-libgail-util3-GailMisc.html#gail-misc-layout-get-run-attributes" title="gail_misc_layout_get_run_attributes ()">gail_misc_layout_get_run_attributes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> *
</td>
<td class="function_name">
<a class="link" href="gail-libgail-util3-GailMisc.html#gail-misc-get-default-attributes" title="gail_misc_get_default_attributes ()">gail_misc_get_default_attributes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gail-libgail-util3-GailMisc.html#gail-misc-get-extents-from-pango-rectangle" title="gail_misc_get_extents_from_pango_rectangle ()">gail_misc_get_extents_from_pango_rectangle</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gint</span>
</td>
<td class="function_name">
<a class="link" href="gail-libgail-util3-GailMisc.html#gail-misc-get-index-at-point-in-layout" title="gail_misc_get_index_at_point_in_layout ()">gail_misc_get_index_at_point_in_layout</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gail-libgail-util3-GailMisc.html#gail-misc-get-origins" title="gail_misc_get_origins ()">gail_misc_get_origins</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> *
</td>
<td class="function_name">
<a class="link" href="gail-libgail-util3-GailMisc.html#gail-misc-buffer-get-run-attributes" title="gail_misc_buffer_get_run_attributes ()">gail_misc_buffer_get_run_attributes</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="gail-libgail-util3-GailMisc.description"></a><h2>Description</h2>
<p>GailMisc is a set of utility function which are used in the implemementation
of Atk interfaces for GTK+ widgets. They may be useful to implementors of
Atk interfaces for custom widgets.</p>
</div>
<div class="refsect1">
<a name="gail-libgail-util3-GailMisc.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gail-misc-add-attribute"></a><h3>gail_misc_add_attribute ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> *
gail_misc_add_attribute (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> attr</code></em>,
                         <em class="parameter"><code><span class="type">gchar</span> *value</code></em>);</pre>
<p>Creates an <a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttribute"><span class="type">AtkAttribute</span></a> from <em class="parameter"><code>attr</code></em>
 and <em class="parameter"><code>value</code></em>
, and adds it
to <em class="parameter"><code>attrib_set</code></em>
.</p>
<div class="refsect3">
<a name="gail-misc-add-attribute.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>attrib_set</p></td>
<td class="parameter_description"><p>The <a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> to add the attribute to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>attr</p></td>
<td class="parameter_description"><p>The AtkTextAttrribute which identifies the attribute to be added</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>The attribute value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gail-misc-add-attribute.returns"></a><h4>Returns</h4>
<p> A pointer to the new <a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gail-misc-layout-get-run-attributes"></a><h3>gail_misc_layout_get_run_attributes ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> *
gail_misc_layout_get_run_attributes (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
                                     <em class="parameter"><code><span class="type">PangoLayout</span> *layout</code></em>,
                                     <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
                                     <em class="parameter"><code><span class="type">gint</span> offset</code></em>,
                                     <em class="parameter"><code><span class="type">gint</span> *start_offset</code></em>,
                                     <em class="parameter"><code><span class="type">gint</span> *end_offset</code></em>);</pre>
<p>Adds the attributes for the run starting at offset to the specified
attribute set.</p>
<div class="refsect3">
<a name="gail-misc-layout-get-run-attributes.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>attrib_set</p></td>
<td class="parameter_description"><p>The <a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> to add the attribute to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>layout</p></td>
<td class="parameter_description"><p>The PangoLayout from which the attributes will be obtained</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>text</p></td>
<td class="parameter_description"><p>The text </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>offset</p></td>
<td class="parameter_description"><p>The offset at which the attributes are required</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>start_offset</p></td>
<td class="parameter_description"><p>The start offset of the current run</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>end_offset</p></td>
<td class="parameter_description"><p>The end offset of the current run</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gail-misc-layout-get-run-attributes.returns"></a><h4>Returns</h4>
<p> A pointer to the <a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gail-misc-get-default-attributes"></a><h3>gail_misc_get_default_attributes ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> *
gail_misc_get_default_attributes (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
                                  <em class="parameter"><code><span class="type">PangoLayout</span> *layout</code></em>,
                                  <em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);</pre>
<p>Adds the default attributes to the specified attribute set.</p>
<div class="refsect3">
<a name="gail-misc-get-default-attributes.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>attrib_set</p></td>
<td class="parameter_description"><p>The <a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> to add the attribute to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>layout</p></td>
<td class="parameter_description"><p>The PangoLayout from which the attributes will be obtained</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>The GtkWidget for which the default attributes are required.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gail-misc-get-default-attributes.returns"></a><h4>Returns</h4>
<p> A pointer to the <a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gail-misc-get-extents-from-pango-rectangle"></a><h3>gail_misc_get_extents_from_pango_rectangle ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gail_misc_get_extents_from_pango_rectangle
                               (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>,
                                <em class="parameter"><code><span class="type">PangoRectangle</span> *char_rect</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> x_layout</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> y_layout</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> *x</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> *y</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> *width</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> *height</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> coords</code></em>);</pre>
<p>Gets the extents of <em class="parameter"><code>char_rect</code></em>
 in device coordinates,
relative to either top-level window or screen coordinates as
specified by <em class="parameter"><code>coords</code></em>
.</p>
<div class="refsect3">
<a name="gail-misc-get-extents-from-pango-rectangle.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>The widget that contains the PangoLayout, that contains
the PangoRectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>char_rect</p></td>
<td class="parameter_description"><p>The <span class="type">PangoRectangle</span> from which to calculate extents</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x_layout</p></td>
<td class="parameter_description"><p>The x-offset at which the widget displays the
PangoLayout that contains the PangoRectangle, relative to <em class="parameter"><code>widget</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y_layout</p></td>
<td class="parameter_description"><p>The y-offset at which the widget displays the
PangoLayout that contains the PangoRectangle, relative to <em class="parameter"><code>widget</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>The x-position of the <span class="type">PangoRectangle</span> relative to <em class="parameter"><code>coords</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>The y-position of the <span class="type">PangoRectangle</span> relative to <em class="parameter"><code>coords</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>The width of the <span class="type">PangoRectangle</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>The  height of the <span class="type">PangoRectangle</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>coords</p></td>
<td class="parameter_description"><p>An <a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> enumeration</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gail-misc-get-index-at-point-in-layout"></a><h3>gail_misc_get_index_at_point_in_layout ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>
gail_misc_get_index_at_point_in_layout
                               (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>,
                                <em class="parameter"><code><span class="type">PangoLayout</span> *layout</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> x_layout</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> y_layout</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> x</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> y</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> coords</code></em>);</pre>
<p>Gets the byte offset at the specified <em class="parameter"><code>x</code></em>
 and <em class="parameter"><code>y</code></em>
 in a <span class="type">PangoLayout</span>.</p>
<div class="refsect3">
<a name="gail-misc-get-index-at-point-in-layout.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>A <span class="type">GtkWidget</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>layout</p></td>
<td class="parameter_description"><p>The <span class="type">PangoLayout</span> from which to get the index at the
specified point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x_layout</p></td>
<td class="parameter_description"><p>The x-offset at which the widget displays the
<span class="type">PangoLayout</span>, relative to <em class="parameter"><code>widget</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y_layout</p></td>
<td class="parameter_description"><p>The y-offset at which the widget displays the
<span class="type">PangoLayout</span>, relative to <em class="parameter"><code>widget</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>The x-coordinate relative to <em class="parameter"><code>coords</code></em>
at which to
calculate the index</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>The y-coordinate relative to <em class="parameter"><code>coords</code></em>
at which to
calculate the index</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>coords</p></td>
<td class="parameter_description"><p>An <a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> enumeration</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gail-misc-get-index-at-point-in-layout.returns"></a><h4>Returns</h4>
<p> the byte offset at the specified <em class="parameter"><code>x</code></em>
and <em class="parameter"><code>y</code></em>
in a
<span class="type">PangoLayout</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gail-misc-get-origins"></a><h3>gail_misc_get_origins ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gail_misc_get_origins (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>,
                       <em class="parameter"><code><span class="type">gint</span> *x_window</code></em>,
                       <em class="parameter"><code><span class="type">gint</span> *y_window</code></em>,
                       <em class="parameter"><code><span class="type">gint</span> *x_toplevel</code></em>,
                       <em class="parameter"><code><span class="type">gint</span> *y_toplevel</code></em>);</pre>
<p>Gets the origin of the widget window, and the origin of the
widgets top-level window.</p>
<div class="refsect3">
<a name="gail-misc-get-origins.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>a <span class="type">GtkWidget</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x_window</p></td>
<td class="parameter_description"><p>the x-origin of the widget-&gt;window</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y_window</p></td>
<td class="parameter_description"><p>the y-origin of the widget-&gt;window</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x_toplevel</p></td>
<td class="parameter_description"><p>the x-origin of the toplevel window for widget-&gt;window</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y_toplevel</p></td>
<td class="parameter_description"><p>the y-origin of the toplevel window for widget-&gt;window</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gail-misc-buffer-get-run-attributes"></a><h3>gail_misc_buffer_get_run_attributes ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> *
gail_misc_buffer_get_run_attributes (<em class="parameter"><code><span class="type">GtkTextBuffer</span> *buffer</code></em>,
                                     <em class="parameter"><code><span class="type">gint</span> offset</code></em>,
                                     <em class="parameter"><code><span class="type">gint</span> *start_offset</code></em>,
                                     <em class="parameter"><code><span class="type">gint</span> *end_offset</code></em>);</pre>
<p>Creates an AtkAttributeSet which contains the attributes for the 
run starting at offset.</p>
<div class="refsect3">
<a name="gail-misc-buffer-get-run-attributes.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>The <span class="type">GtkTextBuffer</span> for which the attributes will be obtained</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>offset</p></td>
<td class="parameter_description"><p>The offset at which the attributes are required</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>start_offset</p></td>
<td class="parameter_description"><p>The start offset of the current run</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>end_offset</p></td>
<td class="parameter_description"><p>The end offset of the current run</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gail-misc-buffer-get-run-attributes.returns"></a><h4>Returns</h4>
<p> A pointer to the <a href="/usr/share/gtk-doc/html/atk/AtkObject.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</p>
</div>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>